package jucTest;


import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

public class CallableDemo implements Callable {
    @Override
    public String call() throws Exception {
        System.out.println("进入call方法");
        return "zhaohui";
    }

    public static void main(String[] args) {
        FutureTask<String> futureTask = new FutureTask(()->{
            System.out.println("111111111");
            return "ww";
        });
        new Thread(futureTask).start();



    }
}
